package design_pattern.study.prototype.test;

public class Realizetype implements Cloneable{
    public Realizetype(){
        System.out.println("具体原型对象创建成功");
    }
    @Override
    protected Realizetype clone() throws CloneNotSupportedException {
        //object的clone()方法
        System.out.println("浅克隆成功");
        return (Realizetype) super.clone();
    }
}
